INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
IF(WIN32)
	INCLUDE_DIRECTORIES(${3RDPARTY_DIR}/include/netcdf)
ELSE(WIN32)
	INCLUDE_DIRECTORIES(/usr/local/netcdfcxx/include)
	INCLUDE_DIRECTORIES(/usr/local/netcdf4/include)
	LINK_DIRECTORIES(/usr/local/netcdfcxx/lib)	
	LINK_DIRECTORIES(/usr/local/netcdf4/lib)
ENDIF(WIN32)

SET(TARGET_H
    plugin.h
    MyCap.h
    doc.h
)

SET(TARGET_SRC
    controller.cpp
    plugin.cpp
    MyCap.cpp
)

SET(TARGET_ADDED_LIBRARIES
    yaml-cpp
    drogon
    trantor
    OCServer
    OCGIS
    OCMain
    OCGrib
    OCNetCDF
    OCVolume
)

SETUP_GROUP()


IF(WIN32)
    SET(TARGET_EXTERNAL_LIBRARIES 
    sqlite3
    )
ENDIF(WIN32)

SETUP_PLUGIN(ControllerCAPService)
SETUP_PLUGIN_DEP(ControllerMapServer OCMain)
SETUP_PLUGIN_DEP(ControllerMapServer OCServer)